<?php


$connect = mysqli_connect('localhost','root','','ajax');

if (!$connect)
{
    die('Error: connection failed');
}

require_once 'connect.php';
$title = $_POST['title'];
$content = $_POST['content'];


$msql = "INSERT INTO `post` (`id`, `title`, `content`) VALUES (NULL, '$title', '$content')";
mysqli_query($connect, $msql);




?>
